package cn.lee.share;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeListener;

import javax.swing.Action;
import javax.swing.JButton;
import javax.swing.JLabel;

import com.amazon.kindle.kindlet.AbstractKindlet;
import com.amazon.kindle.kindlet.KindletContext;

public class test  extends AbstractKindlet {
        
        private KindletContext ctx;

        public void create(KindletContext context) {
                this.ctx = context;
        }

        public void start() {
                try {
                    KindleShareFrame kindleShareFrame = new KindleShareFrame();
                    ctx.getRootContainer().add(kindleShareFrame.start);
                    ctx.getRootContainer().add(kindleShareFrame.stop);
                    ctx.getRootContainer().add(kindleShareFrame.getTextArea());
                    ctx.getRootContainer().setLayout(new GridBagLayout());
                } catch (Throwable t) {
                        t.printStackTrace();
                }
        }
       
}